package com.good.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author 大钊
 * @since 2022-09-04
 */
@TableName("admin_user")
@ApiModel(value = "AdminUser对象", description = "")
public class AdminUser implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("密码")
    private String passWord;

    @ApiModelProperty("头像")
    private String imageHead;

    @ApiModelProperty("手机号")
    private Long mobile;

    @ApiModelProperty("头像")
    private String email;

    @ApiModelProperty("是否删除")
    private Integer deleted;

    @ApiModelProperty("添加时间")
    private LocalDateTime insertTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("登录错误次数")
    private Integer loginError;

    @ApiModelProperty("用户昵称")
    private String nickName;

    @ApiModelProperty("角色id")
    private String role;

    @ApiModelProperty("添加人")
    private Long uid;

    @ApiModelProperty("账号状态 -1:未授权 0:正常")
    private Integer state;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }
    public String getImageHead() {
        return imageHead;
    }

    public void setImageHead(String imageHead) {
        this.imageHead = imageHead;
    }
    public Long getMobile() {
        return mobile;
    }

    public void setMobile(Long mobile) {
        this.mobile = mobile;
    }
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
    public LocalDateTime getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(LocalDateTime insertTime) {
        this.insertTime = insertTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
    public Integer getLoginError() {
        return loginError;
    }

    public void setLoginError(Integer loginError) {
        this.loginError = loginError;
    }
    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }
    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }
    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "AdminUser{" +
            "id=" + id +
            ", userName=" + userName +
            ", passWord=" + passWord +
            ", imageHead=" + imageHead +
            ", mobile=" + mobile +
            ", email=" + email +
            ", deleted=" + deleted +
            ", insertTime=" + insertTime +
            ", updateTime=" + updateTime +
            ", loginError=" + loginError +
            ", nickName=" + nickName +
            ", role=" + role +
            ", uid=" + uid +
            ", state=" + state +
        "}";
    }
}
